/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Aluno
 */
public class Conexao { 
    
    public Connection getConexao() throws SQLException{
        DriverManager.registerDriver(new org.postgresql.Driver());
        return DriverManager.getConnection("jdbc:postgresql://localhost:5432/eventoTCC", "postgres", "postgres");
    }
}
